import request from '@/utils/request'
import config from './config'

export function getDeptmentList(start, limit = 10, deptId, deptName) {
  return request({
    url: config.getDeptmentList,
    method: 'get',
    params: {
      start,
      limit,
      q_deptId: deptId,
      q_deptName: deptName
    }
  })
}

export function getGroupTreeList(pid) {
  return request({
    url: config.getDeptmentList,
    method: 'get',
    params: {
      pid
    }
  })
}
